import { createRouter, createWebHistory } from "vue-router";

const routes = [
  // {
  //   path: "/",
  //   redirect: "/home",
  //   component: () => import("../components/prop/Menu.vue"),
  // },
  // {
  //   path:"/home",
  //   component:()=>import("../components/prop/Home.vue"),
  //   children:[
  //     {
  //       path:"/chart",
  //       component:()=>import("../components/prop/Chart.vue")
  //     },
  //     {
  //       path:"/draw",
  //       component:()=>import("../components/prop/Draw.vue"),
  //     }
  //   ] 
  // },

  {
    path: "/",
    component: () => import("../components/routerr/Home.vue"),
    children:[
      {
        path:"/b",
        name:'kkkkkkk',
        component:()=>import("../components/routerr/B.vue")
      },
      {
        path:"/a",
        component:()=>import("../components/routerr/A.vue")
      }
    ]
  },

]

const router = createRouter({
  history: createWebHistory(),
  routes: routes
})

export default router